package com.pets.service;

import com.pets.pojo.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pets.utils.Result;

import javax.servlet.http.HttpSession;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Gikx
 * @since 2024-04-04
 */
public interface IUsersService extends IService<Users> {

    //登陆
    Result login(String username, String password, HttpSession session);

    //注册
    Result register(Users users);

    //删除
    Result deleteById(Integer id);

    //修改
    Result update(Users users);

    //根据id查询
    Result selectById(Integer id);

    //分页查询
    Result selectPage(Integer page, Integer pageSize, String username, String nickname, Integer userType, String gender);
}
